<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPopup.Master" AutoEventWireup="true"
    CodeBehind="Rpt_TimeSheet.aspx.cs" Inherits="TeamTime.Rpt_TimeSheet" %>

<%@ Register Src="ReportToFileControl.ascx" TagName="ReportToFileControl" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <asp:ScriptManager runat="server" ID="ScriptManager1" EnablePartialRendering="true">
        <Services>
            <asp:ServiceReference Path="AutoComplete.asmx" />
        </Services>
    </asp:ScriptManager>
    <h3>
        Select time entries</h3>
    <hr />
    <table style="width:200px;" border="0">
        <tr>
            <td>
                From Date:
            </td>
            <td>
                <clib:TextBoxCalendar ID="txtFromDate" runat="server" ClearText=" " EnableViewState="true">
                </clib:TextBoxCalendar>
            </td>
        </tr>
        <tr>
            <td>
                To Date:
            </td>
            <td>
                <clib:TextBoxCalendar ID="txtToDate" runat="server" ClearText=" " EnableViewState="true">
                </clib:TextBoxCalendar>
            </td>
        </tr>
        <tr>
            <td>
                Staff Member:
            </td>
            <td>
                <asp:TextBox ID="txtStaffMember" runat="server" Width="150px" CssClass="searchBox"></asp:TextBox>
                <ajaxToolkit:AutoCompleteExtender runat="server" ID="AutoCompleteExtender1" TargetControlID="txtStaffMember"
                    ServicePath="AutoComplete.asmx" ServiceMethod="getStaffMembers" MinimumPrefixLength="0"
                    EnableCaching="true" OnClientPopulating='show' OnClientPopulated='hide' SkinID="AutoCompleteExtender" />
            </td>
        </tr>
        <tr>
            <td>
                Customer:
            </td>
            <td>
                <asp:TextBox ID="txtCompany" runat="server" Width="147px" CssClass="searchBox"></asp:TextBox>
                <ajaxToolkit:AutoCompleteExtender runat="server" ID="AutoCompleteExtender3" TargetControlID="txtCompany"
                    ServicePath="AutoComplete.asmx" ServiceMethod="getCompanies" MinimumPrefixLength="0"
                    EnableCaching="true" OnClientPopulating='show' OnClientPopulated='hide' SkinID="AutoCompleteExtender" />
                
            </td>
        </tr>
        <tr>
            <td>
                Status
            </td>
            <td>
                <asp:DropDownList ID="ddlStatusFilter" runat="server" >
                    <asp:ListItem Text="All"></asp:ListItem>
                    <asp:ListItem Text="Invoiced"></asp:ListItem>
                    <asp:ListItem Text="Uninvoiced"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                On Invoice No.
            </td>
            <td>
                <asp:TextBox ID="txtInvoiceNum" runat="server" Width="150px"  CssClass="searchBox"></asp:TextBox>
                <ajaxToolkit:AutoCompleteExtender runat="server" ID="AutoCompleteExtender2" TargetControlID="txtInvoiceNum"
                    ServicePath="AutoComplete.asmx" ServiceMethod="getInvoiceNumbers" MinimumPrefixLength="0"
                    EnableCaching="true"  OnClientPopulating='show' OnClientPopulated='hide' SkinID="AutoCompleteExtender" />
            </td>
        </tr>
        <tr>
            <td>
                Render to
            </td>
            <td>
                <uc1:ReportToFileControl ID="ReportToFileControl1" runat="server" Visible="true" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnViewReport" runat="server" Text="View Report" OnClick="btnViewReport_Click" />
            </td>
        </tr>
    </table>
     <script type="text/javascript">
         function show(source, eventArgs) {

             source.get_element().className = 'searchBoxSearching';
         }
         function hide(source, eventArgs) {

             source.get_element().className = 'searchBox';
         }
        </script>
</asp:Content>
